package br.com.wssa.email.ejb.service;

import java.io.Serializable;

import javax.ejb.Local;

import br.com.wssa.email.dto.EmailDTO;
import br.com.wssa.email.exception.EmailException;

/**
 * EmailProducerService
 */
@Local
public interface EmailProducerService  extends Serializable {

    /** Constante JNDI_NAME. */
    String JNDI_NAME = "ejb/EmailProducerService";

    /**
     * Envia um email para fila processar.
     * @param dto um EmailDTO
     * @throws EmailException e
     */
    void enviarEmail(EmailDTO dto) throws EmailException;
}
